package com.jec.module.sysmonitor.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.jec.module.sysmonitor.entity.DevicePort;

public interface DevicePortRepository extends JpaRepository<DevicePort,Integer>{
	
	public List<DevicePort> findAllByDeviceId(int deviceId);
	
	public boolean existsByDeviceIdAndNumberAndIdNot(int deviceId, String number, int id);

}
